﻿#include "AbstractPhysicsDialog.h"
#include "FITK_Component/FITKAcousticsPhysics/FITKAcousticsPhysics.h"

namespace GUI
{
    AbstractPhysicsDialog::AbstractPhysicsDialog(PhysicsDlgExecType type,  QWidget* parent /*= nullptr*/)
        :Core::FITKDialog(parent),_execType(type)
    {
        //初始化物理属性管理器
        Acoustics::FITKAcousticsPhysics* phy = Acoustics::FITKAcousticsPhysics::GetAcousticsPhysicsFromFrame();
        if (phy == nullptr) return;
        _propMgr = phy->getPhysicsPropManager();
    }

    AbstractPhysicsDialog::~AbstractPhysicsDialog()
    {
        //虚函数
    }

    AbstractMaterialDialog::AbstractMaterialDialog(PhysicsDlgExecType type,  QWidget* parent /*= nullptr*/)
        :AbstractPhysicsDialog(type,parent)
    {
        //初始化材料管理器
        Acoustics::FITKAcousticsPhysics* phy = Acoustics::FITKAcousticsPhysics::GetAcousticsPhysicsFromFrame();
        if (phy == nullptr) return;
        _matMgr = phy->getMaterialManager();
        _nctMgr = phy->getFITKAcousticsNCTManager();
    }

    AbstractMaterialDialog::~AbstractMaterialDialog()
    {
          //虚函数
    }

}


